cc = mpicc
flags = -ansi -Wall -O2
executable = projeto
sources = trie.c projeto_mpi.c
objects = $(sources:.c=.o)

all : $(executable)

$(executable) : $(objects)
	$(cc) $(flags) $(objects) -o $(executable); rm -f *.o

trie.o : trie.c
	$(cc) $(flags) -c $<

projeto_mpi.o : projeto_mpi.c
	$(cc) $(flags) -c $<
